<?php
$this->breadcrumbs = array(
	'公司资质' => array(
		'index'
	),
	$model->name,
);

if (Yii::app()->user->checkAccess('employeeManage')) {
	$this->userActions = array(
		//array('label'=>'List CompanyCertificate', 'url'=>array('index')),
		array(
			'label' => '新建资质',
			'url' => array(
				'create'
			)
		),
		array(
			'label' => '更新',
			'url' => array(
				'update',
				'id' => $model->id
			)
		),
		array(
			'label' => '删除',
			'url' => '#',
			'linkOptions' => array(
				'submit' => array(
					'delete',
					'id' => $model->id
				),
				'confirm' => '确定要删除这个资质信息么？'
			)
		),
		array(
			'label' => '管理',
			'url' => array(
				'admin'
			)
		),
	);
}
?>

<h1>View CompanyCertificate #<?php echo $model->id; ?></h1>
<?php $this
	->widget('zii.widgets.CDetailView',
		array(
			'data' => $model,
			'attributes' => array(
				'id',
				'name',
				'grantDate',
				'verifyDate',
				'extendDate',
				'expireDate',
				array(
					'name' => 'previewImage',
					'type' => 'raw',
					'value' => CHtml::link(
						CHtml::image(
							Yii::app()->baseUrl . "/uploads/companyCertificate/tn/"
								. $model->previewThumb),
						Yii::app()->baseUrl . "/uploads/companyCertificate/" . $model->previewImage,
						array(
							"target" => "_blank"
						)),
				),
				'note',
				'createTime',
				'createUserId',
				'updateTime',
				'updateUserId',
			),
		));
?>
